package com.wpen.unit.core.service;

import java.util.List;

import com.wpen.unit.core.ddo.JobAgentBindingDo;
import com.wpen.unit.core.ddo.JobRunningDo;
import com.wpen.unit.infra.mybatis.job.po.AgentRegistryPo;
import com.wpen.unit.infra.mybatis.job.po.JobUndoPlanPo;
import com.wpen.unit.web.dto.ContextResponse;

/**
 * 调度器业务处理
 * 
 * @author Wang Peng
 * @date 2022-12-11
 */
public interface AgentScheduleHandler {

	public void agentMonitor();

	public void jobExecutor();

	public JobAgentBindingDo jobExecutorUpdate(List<JobUndoPlanPo> jobUndoPlanPos);

	public ContextResponse http2Check(AgentRegistryPo agentPo, JobRunningDo jobRunningDo);

	public ContextResponse http2Remove(AgentRegistryPo agentPo, JobRunningDo jobRunningDo);

	public ContextResponse http2Kill(AgentRegistryPo agentPo, JobRunningDo jobRunningDo);

}
